//
//  ChatLoginUserMgr.h
//  WXIM
//
//  Created by fusuwei on 14-10-29.
//  Copyright (c) 2014年 naren. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YY_FMDatabase.h"
#import "ChatLoginUser.h"


@interface ChatLoginUserMgr: NSObject


//check ChatLoginUser table is create in db
+(BOOL)checkChatLoginUserTableCreatedInDb:(YY_FMDatabase *)db;

//保存当前登录用户对象ChatLoginUser到ChatLoginUser表中
+(BOOL)saveChatLoginUser:(ChatLoginUser*)chatLoginUser;

//更新指定NSString字段
+(BOOL)saveUpdateUserId:(NSString*)UserId fieldName:(NSString*)fieldName value:(NSString*)value;

//更新指定NSInteger字段
+(BOOL)saveUpdateUserId:(NSString*)UserId fieldName:(NSString*)fieldName valueInt:(NSInteger)value;

//删除当前登录用户对象保存的信息
+ (BOOL)deleteChatLoginUser;

//获取当前登录用户信息
+ (ChatLoginUser *)getCurLoginUser;



@end
